/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package ar.com.remiseria.bo;

import ar.com.remiseria.dao.LicenciaDAO;
import ar.com.remiseria.entities.Licencia;
import java.util.ArrayList;
import java.util.List;
import org.hibernate.HibernateException;

/**
 *
 * @author mcvalls
 */
public class LicenciaBO {
    
    public List<Licencia> getAllLicencias() throws Exception{
          List<Licencia> lasLicencias = new ArrayList<Licencia>();

        try {
            LicenciaDAO licenciaDAO = new LicenciaDAO();
            lasLicencias = licenciaDAO.getAll(Licencia.class);
        } catch (HibernateException hex) {
            throw new Exception(hex);
        }

        return lasLicencias;
    }
    
}
